<%@ page import="java.util.HashMap" %>
<%@ page import="utils.string.session.SessionStringUtil" %>
<%@ page import="vo.Equipment" %><%--
  Created by IntelliJ IDEA.
  User: Chris
  Date: 2021/5/10
  Time: 14:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>DeleteEquipmentConfirm</title>
</head>
<body>
<%
    int equipmentId = Integer.parseInt(request.getParameter("equipmentId"));
    HashMap allEquipments = (HashMap)session.getAttribute(SessionStringUtil.ALL_UNUSED_EQUIPMENTS);
    Equipment equipment = (Equipment) allEquipments.get(equipmentId);
%>
您确认删除设备：<%=equipment.getEquip_name()%>
<form action="servlet/DeleteEquipmentServlet" method="post">
    现有的设备数目:<%=equipment.getEquip_num()%><BR>
    <input name="equipmentId" type="hidden" value="<%=equipment.getEquip_id()%>">
    <input name="equipmentName" type="hidden"
           value="<%=equipment.getEquip_name()%>">
    <input type="submit" value="确定删除">
</form>
</body>
</html>
